<?php include 'inc/teacher_head.php';?>


<div class="layui-container">

    <div class="layui-row" style="width:50%;margin:100px auto;">

    <form class="layui-form layui-form-pane" method="post">

    <input name="id"  type="hidden" value="<?=@$this->info['id']?>"/>

    <input type="hidden" name="token" value="<?php echo $this->token;?>" />

        <div class="layui-form-item ">
            <blockquote class="layui-elem-quote" style="font-size:18pt;">
                修改账号信息
            </blockquote>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                真实姓名
            </label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input" lay-verify="required" lay-vertype="tips" name="realname" placeholder="请输入姓名" type="text" value="<?=$this->info['realname']?>"/>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">
                新的密码
            </label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input" lay-verify="" lay-vertype="tips" name="password" placeholder="不输入默认为不修改密码" type="password"/>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">
                再输一次
            </label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input" lay-verify="" lay-vertype="tips" name="password2" placeholder="请再输入一次新密码" type="password"/>
            </div>
        </div>

        <div class="layui-form-item" style="text-align: right;">
            <button class="layui-btn b1" lay-filter="do" lay-submit>
                确 定 修 改
            </button>
        </div>
    </form>
    </div>
</div>

<script language="javascript">
    layui.use(['form', 'element', 'table'], function () {
            var form = layui.form
                , table = layui.table
                , $ = layui.$;
            $("#nav_system").addClass('layui-this'); //设置导航当前选中项的样式

    form.on('submit(do)', function (data) {
            $.post('/teacher/info', data.field, function (r) {
                layer.msg(r);
            });
            return false;
        });

        });
</script>
<?php include 'inc/teacher_foot.php';?>
